$def with(type = None)

<script type="text/javascript">
    $$(function () {
        $$('.left_nav>ul>li.on').removeClass('on');    
        $if type:
            var item = $$('.left_nav>ul>li.$type');
            if (item.length > 0)
                item.addClass('on');
            else
                $$('.left_nav>ul>li.other').addClass('on');
        $elif type != 'none':
            $$('.left_nav>ul>li:eq(0)').addClass('on');
    });
</script>

			<div class="left_nav">
                <ul>
					<li class="on"><a href="/discounts">最新 Top10</a></li>
					<!--<li class="directing"><a href="/discounts/directing">直销特惠</a></li>-->
					<li class="hotel"><a href="/discounts/hotel">酒店</a></li>
					<li class="flight"><a href="/discounts/flight">航班</a></li>
					<li class="group"><a href="/discounts/group">线路</a></li>
                    <!--
                    <li class="lightning"><a href="/discounts/lightning">闪电特惠</a></li>
                    -->
                    <li></li>
                    <li class="beijing"><a href="/discounts/beijing">北京出发</a></li>
                    <li class="shanghai"><a href="/discounts/shanghai">上海出发</a></li>
                    <li class="guangzhou"><a href="/discounts/guangzhou">广州出发</a></li>
                    <li class="other"><a href="/discounts/other">其他</a></li>
				</ul>
			</div>
			<!--left_nav End-->
